package com.thread.n4;

public class Test {
    static  final Object lock=new Object();
    static  int counter=0;
    public static void main(String[] args) {
        synchronized (lock){
            counter++;
        }
    }
}
